﻿update
	"OS".tbamortos
set
	tn = (select tn from "OS".tbobjos where ninv = "OS".tbamortos.ninv and unp = '' and unp_dop = '')
where
	unp = '' and unp_dop = '';